Meaningful Exception handling

Поиск
Список
Период
Сортировка
От AgentM
Тема Meaningful Exception handling
Дата
Msg-id a05101501b8e221d4a496@[128.2.161.124]
обсуждение исходный текст
Список pgsql-jdbc
First off, thanks for the quick help with my previous simple problem.

Now I'd like to catch SQLExceptions selectively. For example, I have
a uniquely indexed column in Table A. I would like to insert into
this column and I don't care if the insert fails due to duplication.
But I would want to know if something else went wrong. Is there a way
to specifically catch and ignore this particular instance of the
SQLException short of comparing a String to the database's returned
error message? Are there any docs referring to SQLException messages
thrown? Thanks again.
--
><><><><><><><><><><><><
AgentM
agentm@cmu.edu

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Dave Cramer
Дата:
Сообщение: test cases failing?
Следующее
От: "Joe Shevland"
Дата:
Сообщение: BLOB performance test FYI